import axios from '@/axios/request'

//新增新闻
export function addNews(params) {
  return axios({
    url: 'api/addNews',
    method: 'POST',
    data: params
  })
}

// 查询新闻
export function getNewsList() {
  return axios({
    url: 'api/getNewsList',
    method: 'POST',
    data: {}
  })
}

// 删除新闻
export function delNews(params) {
  return axios({
    url: 'api/delNews',
    method: 'POST',
    data: params
  })
}

// 修改新闻
export function editNews(params){
  return axios({
    url: 'api/editNews',
    method: 'POST',
    data: params
  })
}
